package com.pig4cloud.pig.demo.feign.Entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Comment {
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    private String content;

    @TableField(fill = FieldFill.INSERT)
    private Date published;

//    @JsonFormat(shape = JsonFormat.Shape.STRING)
//    private Long aid;
//
//    @JsonFormat(shape = JsonFormat.Shape.STRING)
//    private Long uid;
//
//    @JsonFormat(shape = JsonFormat.Shape.STRING)
//    private Long cid;

    private Article article;

    private User user;

    private Conlike conlike;
}
